#pragma once
#include<iostream>
using namespace std;
class Date
{
public:
	Date(int year, int month, int day);
	Date(const Date& d);
	int GetMonthDay(int month, int year);
	bool operator==(const Date& d);
	bool operator<(const Date& d);
	bool operator>(const Date& d);
	bool operator<=(const Date& d);
	bool operator>=(const Date& d);
	bool operator!=(const Date& d);
	Date operator+(int day);
	Date operator-(int day);
	Date operator+=(int day);
	Date operator-=(int day);
	int operator-(const Date & d);
	Date operator++();
	Date operator++(int);
	Date operator--();
	Date operator--(int);
	friend ostream& operator<<(ostream& out, const Date& d);
	friend istream& operator>>(istream& in, Date& d);
private:
	int _year;
	int _month;
	int _day;
};